<?php
include('phpgraphlib/phpgraphlib.php');


$num_user=$_GET['num_user']; 

$graph = new PHPGraphLib(1200,450);

for($i=1;$i<=$num_user;$i++){
    
     $datae[$_GET["user$i"]] = $_GET["passion$i"];
    
}


$graph->addData($datae);

$graph->setTitle('% of Passion of users who mention your brand');

$graph->setBars(true);


$graph->setDataValues(true);

$graph->setDataValueColor('blue');

$graph->setXValuesHorizontal(true);

$graph->setBarColor('blue');

//$graph->setGoalLine(.0025);
//$graph->setGoalLineColor('red');
$graph->createGraph();

?>